#include "GUIPch.h"

#include "GUIBase.h"

GUIBase::GUIBase() : 
m_Enable( TRUE )
,m_Visible( TRUE )
,m_Focus( FALSE )
{
}

GUIBase::~GUIBase()
{
}

BOOL GUIBase::CheckCollision( float x, float y )
{
	if( x < m_rect.m_left || m_rect.m_right < x )
	{
		return FALSE;
	}
	 
	if( y < m_rect.m_top || m_rect.m_bottom < y )
	{
		return FALSE;
	}

	return TRUE;
}